<?php /* Smarty version 2.6.26, created on 2015-06-01 11:03:45
         compiled from ../Common/right.html */ ?>
<div id='right'>
	<?php if (isset ( $_SESSION['uid'] )): ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href="<?php echo @__APP__; ?>
?c=member"><img src="" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="<?php echo @__APP__; ?>
?c=member">
						<b><?php echo $this->_tpl_vars['rightCate']['username']; ?>
</b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><?php echo $this->_tpl_vars['rightCate']['point']; ?>
<b class='point'></b></a></dd>
				<dd>经验值：<?php echo $this->_tpl_vars['rightCate']['exp']; ?>
</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href=""><?php echo $this->_tpl_vars['rightCate']['answer']; ?>
</a></td>
					<td><a href=""><?php echo $this->_tpl_vars['adopt']; ?>
%</a></td>
					<td class='last'><a href=""><?php echo $this->_tpl_vars['rightCate']['ask']; ?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
	<?php else: ?>	
		 <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div>
	<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<?php if (isset ( $this->_tpl_vars['todayMostAns'] )): ?>
		<span class='star-name'>本日回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['todayMostAns']['username']; ?>
</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $this->_tpl_vars['todayMostAns']['answer']; ?>
</span></li>
					<li>采纳率：<span><?php echo $this->_tpl_vars['todayMostAns']['acc']; ?>
%</span></li>
				</ul>
			</div>
		<?php endif; ?>	
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href=""><?php echo $this->_tpl_vars['mostAnswer']['username']; ?>
</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $this->_tpl_vars['mostAnswer']['answer']; ?>
</span></li>
				<li>采纳率：<span><?php echo $this->_tpl_vars['mostAnswerAcc']; ?>
%</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
				<li>
					<a href=""><i class='rank r1'></i><?php echo $this->_tpl_vars['mostAdopt']['0']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['mostAdopt']['0']['accept']; ?>
</span>
				</li>
				<li>
					<a href=""><i class='rank r2'></i><?php echo $this->_tpl_vars['mostAdopt']['1']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['mostAdopt']['1']['accept']; ?>
</span>
				</li>
				<li>
					<a href=""><i class='rank r3'></i><?php echo $this->_tpl_vars['mostAdopt']['2']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['mostAdopt']['2']['accept']; ?>
</span>
				</li>				
			</ul>
		</div>
	</div>
</div>